<?php


namespace App\Model;


use Illuminate\Database\Eloquent\Model;

class Supplier extends Model
{
    public $timestamps = false;

    /**
     * 用户历史记录
     */
    public function userHistory()
    {
        return $this->hasOneThrough('App\Model\History', 'App\User');
    }

    public function user()
    {
        return $this->hasOne('App\User');
    }
}